package ru.susu.algebra.ranks;

import java.io.BufferedReader;
import java.io.FileReader;

/**
 * @author akargapolov
 * @since: 10.11.2009
 */
public class LineExtractor
{
	private static final int NUM_LINES = 16;
	private static final int OUR_LINE = 9;

	public static void main(String[] args) throws Exception
	{
		BufferedReader reader = new BufferedReader(new FileReader("Ranks/ranks800.txt"));

		//read legend
		for (int i = 0;i<= NUM_LINES;i++)
			reader.readLine();

		int counter = 0;
		while(1 == 1)
		{
			String line = reader.readLine();
			if (line == null)
				break;

			if (counter%NUM_LINES == OUR_LINE)
			{
				String s = line.substring(3);
				double v = "0".equals(s) ? 1 : Double.parseDouble(s);
				System.out.println(Math.log(v));
			}

			counter++;
		}

	}

}
